package com.hc.demo.service;

import com.hc.demo.dto.ResultResponse;
import com.hc.demo.mapper.SetmealMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SetmealServiceImpl implements SetmealService {

    @Autowired
    SetmealMapper setmealMapper;

    @Override
    public ResultResponse listSetmeal(Integer type){
        return new ResultResponse(ResultResponse.SUCCESS_CODE,ResultResponse.SUCCESS_DESC,setmealMapper.selectByType(type));
    }

}
